This section describes functions that are implemented by instrument components.
The InstrumentGetInfo function returns information about all the atomic instruments supported by an instrument component.
extern pascal ComponentResult InstrumentGetInfo(
ComponentInstance ci,
long getInstrumentInfoFlags,
InstCompInfoHandle *instInfo)
The InstrumentGetInst function returns an atomic instrument.
extern pascal ComponentResult InstrumentGetInst(
ComponentInstance ci,
long instID,
AtomicInstrument *atomicInst,
long flags)
Used by developers of instrument components, this is a call the instrument component makes to the base class instrument component to tell it how to interpret the instrument component resources.
extern pascal ComponentResult InstrumentInitialize(
ComponentInstance ci,
long initFormat,
void *initParams)
The InstrumentOpenComponentResFile function opens the resource file containing the instruments in the instrument component and makes it the current resource file.
extern pascal ComponentResult InstrumentOpenComponentResFile(
ComponentInstance ci,
short *resFile)
The InstrumentCloseComponentResFile function closes a resource file.
extern pascal ComponentResult InstrumentCloseComponentResFile(
ComponentInstance ci,
short resFile)
The InstrumentGetComponentRefCon function gets the reference constant for an instrument component.
extern pascal ComponentResult InstrumentGetComponentRefCon(
ComponentInstance ci,
void **refCon)
Use the InstrumentSetComponentRefCon function to override the Component Manager SetComponentRefCon function and set the instrument component's reference constant to a specified value.
extern pascal ComponentResult InstrumentSetComponentRefCon(
ComponentInstance ci,
void *refCon)